<%@ page language="java" import="java.util.*"%>
<%@ page session="true"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="t"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>  
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="../../template/estilos.jsp"%>
<%@include file="../../template/script.jsp" %>
<script src="${pageContext.request.contextPath}/resources/assets/scripts/module/countryProvider.js" type="text/javascript" ></script>
	
<title>Insert title here</title>
 
</head>

<body class="page-header-fixed">
    <!--form action="#" name="listCountry" -->   
    <%@include file="../../template/header.jsp"%>
        <!--div class="page-container" -->
            <%@include file="../../template/sidebar.jsp"%>
          <div class="page-container"> 
            <div class="page-content">
              <form:form action="save"  id="form"  method="post"  class="form-horizontal">
                  
                <%@include file="../../template/header_module.jsp"%>
               <div class="row-fluid">
					<div class="span12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
                                                <div class="container-fluid">
						<div class="portlet box grey">
                                                  <div class="portlet-title">
							<div class="caption"><i class="icon-share"></i>View Simcard</div>
						  </div>
							<div class="portlet-body">
                                                            <c:forEach var="val" items="${simcard}">
                                                                
                                                            <div class="control-group">
								<label class="control-label">Iccid : &nbsp;</label>
                                                                <input class="m-wrap medium" readonly type="text" value="${val.iccid.trim()}" disabled />
                                                            </div> 
                                                            <div class="control-group">
								<label class="control-label">Imsi : &nbsp;</label>
                                                                <input class="m-wrap medium" readonly type="text" value="${val.imsi.trim()}" disabled />
                                                            </div>
                                                            <div class="control-group">
								<label class="control-label">Movil Name : &nbsp;</label>
                                                                <input class="m-wrap medium" readonly type="text" value="${val.movilName.trim()}" disabled />
                                                            </div>
                                                            <div class="control-group">
								<label class="control-label">Plan Type : &nbsp;</label>
                                                                <input class="m-wrap medium" disabled readonly type="text" value="${val.plantype.trim()}"  />
                                                            </div>
                                                            <div class="control-group">
								<label class="control-label">Provider : &nbsp;</label>
                                                                <input class="m-wrap medium" readonly type="text" value="${val.provider.name.trim()}" disabled />
                                                            </div>
                                                            <div class="control-group">
								<label class="control-label">Network : &nbsp;</label>
                                                                <input class="m-wrap medium" readonly type="text" value="${val.network.description.trim()}" disabled />
                                                            </div>
                                                            
                                                            </c:forEach>
                                                            <div class="control-group"> 
                                                               <div class="controls">
                                                                   <a href="update?module=<%=request.getParameter("module") %>&id=${param.id}">
                                                                         <button class="btn blue" type="button" onclick="validateForm();">
                                                                             <i class="icon-ok"></i> Edit
                                                                         </button>
                                                                   </a>
                                                                     
                                                                     <a href="index?module=<%=request.getParameter("module")%>">
                                                                         <button class="btn gray cleardata"  type="button" >
                                                                             <i class="icon-remove"></i> Cancel
                                                                         </button>
                                                                     </a>
                                                                     <a class="btn red" data-toggle="modal" onclick="confirmDelete('<%=request.getParameter("id") %>');"  href='#static' >
                                                                     <i class='icon-trash'></i> Delete</a>
                                                                    
								   </div>  
                                                            </div> 
							</div> 
							</div>
						</div>
                                              </div> 
                                   <div id="static" class="modal hide fade" tabindex="-1" data-backdrop="static" data-keyboard="false">
                                    <div class="modal-body" id="bodyMessage">
					<p>Are you sure do you want delete this Simcard?</p>
                                    </div>
                                    <div class="modal-footer">
                                    <button type="button" data-dismiss="modal" class="btn">Cancel</button>
                                    <button type="button" onclick="submitDelete();"  data-dismiss="modal" class="btn red">Delete</button>
                                    </div>    
                                </div> 
					</div>
				</div>
                             
                  <input type="hidden" value="<%=request.getParameter("id") %>" name="id" id="id"/>
                  <input type="hidden" value="<%=request.getParameter("module") %>" name="module" id="module"/>
               </form:form>
            </div>
        </div> 
        <%@include file="../../template/footer.jsp"%> 
        
    </body>
</html>



